package com.alex.util.security.test;

import java.nio.charset.Charset;

/**
 * Created by xc on 2018/6/5.
 */
public interface ConstantInterface {
    String CHARSET_NAME = "utf-8";
    Charset CHARSET = Charset.forName("utf-8");
    String SESSION_ID = "sessionId";
    String REQUEST_ENV = "appEnv";
    String SIGN = "sign";
    String OAVS_ID = "oavsId";
    String CONTENT = "content";
    String FROM_OAVSID = "from_oavsId";
    String TIMESTEMP = "timestemp";
    String APP_PACKAGE_NAME = "app_package_name";
    String APP_VERSION = "app_version";
    String PHONE_SYSTEM_TYPE = "phone_system_type";
    String IP_ADDRESS = "ip_address";
    String KEY_ENC = "keyEnc";
    String CON_ENC = "conEnc";
    String CIPHER_ALGORITHM_CBC_PKCS5Padding = "AES/CBC/PKCS5Padding";
    String KEY_ALGORITHM_AES = "AES";
    String RANDOM_STRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
    String KEY_ALGORITHM_RSA = "RSA";
    String KEY_ALGORITHM_PKCS1Padding = "RSA/ECB/PKCS1Padding";
    String SIGNATURE_ALGORITHM = "MD5withRSA";
    String PUBLIC_KEY = "RSAPublicKey";
    String PRIVATE_KEY = "RSAPrivateKey";
    int MAX_ENCRYPT_BLOCK = 117;
    int MAX_DECRYPT_BLOCK = 128;
    int RSA_KEY_SIZE = 1024;
}
